import uvicorn

from application import Application
from application.config import appSettings

import multiprocessing
multiprocessing.log_to_stderr()  # 输出调试日志

app = Application().instance()

if __name__ == '__main__':
    uvicorn.run(
        'main:app',
        host=appSettings.app_host,
        port=appSettings.app_port,
        reload=appSettings.app_reload,
        log_level='info',
    )
